Skip to content

fix(harvester): merge duplicate contributors#869

Open
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-861-merge-duplicate-contributors
Open

fix(harvester): merge duplicate contributors#869
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-861-merge-duplicate-contributors

Conversation

@TahaKhan998

@TahaKhan998 TahaKhan998 commented Jul 21, 2026

Copy link
Copy Markdown

Closes #861

The harvester was failing when a CDS record contained multiple contributor entries matching the same incoming INSPIRE contributor. Since it could not decide which entry to update, it raised a Multiple creators match incoming conflict.

This PR merges the matching CDS contributor entries before applying the incoming INSPIRE data. Metadata, identifiers, and affiliations from the existing entries are preserved while exact duplicates are removed.

It also fixes the duplicated affiliations errors that appeared when the same records were harvested again. The affiliation merge previously checked duplicate names but always appended ID-based affiliations, so repeated runs could add the same vocabulary ID more than once. Affiliations are now deduplicated by both ID and name across the stored and incoming data, including duplicates already present in the CDS record.

Finally, strict update conflicts are logged only by the writer instead of both the update engine and writer, so the same error no longer appears twice in the harvester report.image

image

@TahaKhan998
TahaKhan998 force-pushed the fix/issue-861-merge-duplicate-contributors branch 2 times, most recently from 645fde7 to f5937bc Compare July 21, 2026 14:25
@TahaKhan998
TahaKhan998 force-pushed the fix/issue-861-merge-duplicate-contributors branch from f5937bc to e516496 Compare July 21, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thesis harvester: verification

1 participant